set up a directive to iterate through multiple gems