fixed to better node code