dont use auto in foreach