compact: size_t -> int