updates for presplitting code