fixed each_with_index