check.cpp update