switched to 3D vector array for hashing