before particle clustering