remove unused kind variable