pattern fixes