removed use of c++11 'auto' for iterator type