added things to motion estimation