moved splitter call out of loop to optimize