gave Detector type to attribute of Read class