removing extra line
Moving EOF to a variable
removing useless comment
Removing useless helper