first commit change_pi_state