fixed y coordinate generation