created data structure for references