functions tunned in objectdetection