Effect of holding office on the behavior of politicians