auto node creation code added for student mode