removed erronious call to tryReplace