ported partitioning block. unit test succeeds and fg execution shows expected results.