Using generics; discarded Vector in criterias