change current state fn