working on expanding refs which are sets.