how to use two inputs into one output