Codes modified by TAN