fixed bug with nested parentheses, added padding