upgraded to opencv