change index to zipWithIndex