added functionality of parentheses inside of logs