working on front_split, still has a bug