added legislator function