custom member function, doesn't work