added parenthesis (more sophisticated algorithm will follow soon)