implement remove node