attrib_type code and statistic name are not always the same
use code directly in get_attrib method