added interest group check before forming an array