update some func