implement BEGIN_PROC and END_PROC node creation