now raising IndexError when current_node.nil?