modified the delete statement