updated library class