support for multiple solutions, selecting the closest one