added integral linearity calc