OptFlow: update function added to fix compiler error