added scripts for patterns