script to map reference electorates to members