it's better to use cbegin(), cend() methods for c++0x with auto usage when you need only read data