use macro for update_screen x value