removed empty line
refactored the analysis part