changed metric to compare to ideal