replaced optical flow with center of mass code