splitting functions in more files