object iteration works