use correct type key