generating the parenthesis