changes to chainer