remove old pattern files and add to pattern include
add comments in code