waste less memory and use int8 instead of int32