mkindex page initial code