fixed t rounding errors