implementing shrink_number