added padding for smoothing