change const to var