fix chainer function#4