saving method - attrs and nodes, links don't work properly