modify main.cpp for hcp , tmp modi