Update hz.cpp