added attributes to the selector and a quality score