changed Collection.write to Collection.save