changed particle constructor