remove unnecessary members