added paranthesis parsing