update on parser and userInput

add add function in parser