close pattern