held public office when he was sworn in