adds references to each instance