upgrade in library model