Added input selection

still not working