fix chainer function#7