updated y axis variables to update properly