rewrite splitcore