replace replaced to proper place