update functions class