update work.cpp