add new PN code for non initial nodes