reenable checkCode()