changed all the consts into a single const declaration