solve find max