ported code over to nodes 3,4 and level2_2