adding delete method back into code