working except for x axis order