modify patTuple creation