path added to rename and if