fix code length