UPDATE lib to remove duplicates