replace hard code igred array with igred object