changed pack to set edge attributes