get_files() function added