added support for repeated placeholders