add type to getLegislators