alternative syntax for 'foreach'