added removal of unused placeholders