is it possible not to use magic numbers in the code but define a macro?