added number parser function