particle tracking code added