middle stage of making tripswithcriteria validator