added splitter code