added const to two methods and an iterator