move constant definition to preamble rather than main