editing test3 around to work with index