split modify an array during traverse in to two posts