wrapping parameters for external function calls in parenthesis to fix some bugs