change const params to varibles