changed number formatting from %f to %g