finishes delete method