reverting number and words