removed redundant replace