changed order of population code