added errors and parsing numbers