added parameter for delete method