changed remopository implementation of update and delete
operation