updated delete-method