make max_num a number