modified node code