fixed patTuple input