roughly read gIndex