addes save functionality to collections