looping over valid params