minor delint of update function