syntax error in member function