Update top.cpp