fix member function add