more fixes; added print list using iterators