Revert "error end of file"

This reverts commit 917220f46c1b70403c476708a3797589fe37b379.