fixed delete method