now uses placeholders and deletes old placeholders and old generated items