Change the chain arrfunc to buffer with shape information