moved indexPostPass out of the kernels (supposed to be faster)