need using a double in the x > 0.0 comparison
test fixes