cross validate stacks data