update main.cpp to 4 sites