added reshaping to work with RingWorld.m