encode changes