slight change
modify to optimize iteration of relations using ITERATE library