change regretSetup.js to patterns.js