started adding selector for type