update library code