setting up own patterns