made final changes with the pattern and text