introduced code for reconfiguration of inputs