proper subfunctions -- Depth-3 test works