saving elements with category