add custom split function