working on integrating the patttern list again
and fix it a little bit