made improvements to IC, added function that gets best candidates