fix setname -> setcode