attempting to add the dectecting program