removed unused functions in util.cpp