removed deprecated patterns()