use #define to save more RAM, code cleanup