modify svr.cpp