remove boost foreach