correct calculation of position for particle exports