Gain lineality solved