changed poor choice of variable name to y