handle inputs with multiple parameters