new code for splitting plans