put parenthesis around newInstance since it has side effect