remove unnecessary member functions.