padd with zero before gaussian blur + correct max