fixed inputs of Loop in select function