use const variables instead of #define's