fixed code for replace