add function to rename files