small suggestions how to improve analysis on the end of the file