stor Kind() result in var

we were calling Kind way too many times.
best to store it in a var instead