added comments. added i_node variable