adding nonlinear comparison data to document