made shorten_num more readable