implemented RectHV