changed transform to calculate TValue not in paint()