convert max and best