removed echo from detect file