put magic numbers into preprocessor defines