using new way to iterate over table