moving constants to global definitions