update pattern library