cleaning up file and organizing it