add constructor for TermCriteria