modifying spatial temporal optical flow