changed delete method and included searchByID