added resize after particle assignment