for auto loop by reference instead of by value