fix arguments in update functions