pattern matcher 1-6