remove deprecated patterns()