change max_num