added particle types and rounding factor