change slave and rep