update and delete done on provider