added optical flow method