changing configuration to use constants