implemented number parsing