add pattern sample