max piece count is int32