adding basic object detection