validation for algo selection