selecting input nodes