new set pattern method