move constant assignment above freeze of constants.