added code to set up RectHV for each node