return a trans code with inherit consideration