handle leading zeros