added a check for deletion and changed the notes about renaming
checking for delete status