add input validation
new checkin of nodeselection