splitted functions in more files