adding option to set pattern for class