switch to looping through types.