change const from 0,1,3 to 0,1,2