starting to summarize the whole process
handling empty files