remove unnecessary methods and fix nodevalue bug