toNumber method added