capacity_type_t typedef added