adapted  scripts to renaming