moved plotting before flattening
started with particle script
... nope.