simplified iterating