why are you not registering the type in the constructor?