filter resplit into 2 functions