replaced "type" with "kind" parameter to avoid collision