working on particle in a frame