updates some functions