for checkcode