modify active.cpp