moving the file to separate file