add test case
refactor contents of pattern
add test case
fix bug contents of pattern