replacing direct references to member function calls