added a split method