iterate over several input values