update/delete functions modified.