before replace() changings