added dilation parameters