fixed end of file bug on line 150