Change boundaries of found pattern