delete method implemented