library code