updated objDetection2.cpp as well