find rest max