switching from type to name