commit before adding in file deletion funciton