TupleTemplates working well based on my conditions