basic lg_up and lg_down in globals.h