use +- internally
move 'IdentifyPattern' into a function
move to table