renaming all file to functions and updating ref to it