eliminated repetitive nodes