implemented a replace placeholder