moved some functionality to particleMain.js