move constant into constructor