use macro for update screen x value