check mode