updated to test pattern