fixed unexpected end of file error