fixed syntax erorr detected by clang++ - but not other compilers