added threadID as own variable in particle