got delete method to run without errors