added select node method