value as  reference in foreach