update and delete working