minor changes to convolution code