remove comments from placeholders and put them in the right place