detector cable code updated and fixed