Update check.cpp