bugs and delete method