update with correct library code