delete method mostly working