iteration on index and style