update sparelib structure