ada code, but with parameter search