cleaned up end of file