implementation of logic for handling A over C and C over T.