removing unnecessary replace