remove pattern library