try all combinations of two parameters