improved split code | ScratchStats