check which input to use as required