update 4 functions