change parameters (caption->StringBuilder, return Type: TypeMetrics)