changed update functions