modify condition.cpp