use median instead of avg for grace, also coeffs