hooked up input selection