removed redundant nodes