update to get track origins right by using correct element from particle history