Removing put at end of file