correct y axis code