updated mapper and added delete method