protected function buffer(&$buffer, $elements, $item, $after, $current)
    {
        foreach ($elements as $keyname => $element) {
            $found = last(explode('.', $after));
            if ($keyname == $found) {
                $buffer[$current][$keyname]  = $element;
                $buffer[$current][$item->id] = $item;
            } else {
                $buffer[$current][$keyname] = $element;
            }
        }
        return $buffer;
    }