turn two inputs into required