remove extraneous zeroes