remove unnecessary node