added reverse iterators and removed white space