add message to delete function