support splitter as a function while compare