optimized verifyCode + typofix