the z that was used to store the index is reset to 0 now