updated for opencv call