need to copy this, the x in the 'if' becomes a local variable, doesn't change x outside of scop