index: use "string" instead of "String" for type def