assigned variables and setup nodes