maybe a fix of the x-axis calculation