handled trashing, deleting. Additional error handling