merge util.cpp