finish the lib