took out file deleting in main