cleaned up file ends