preparing for opencv