deleting is working correctly