this works if I cull some data but with the full set I get a stackoverflow. :-(