remove unnecessary replace