add initial work for motion estimation