chooses the best from three