modified the delete object