got rid of each with index since its not being used