adding getXaxis in dacdac routine