add 0.0 check to prevent NaN's