update the library