seg-faulting when converting to SoA