toa logic