updated to allow deletes