move the totalColumns out of Const