start of check mode