remove unnecessary placeholders