intialize the x value to 0 so that can remove the second error