added additional argument to update