simplify finding the best representation