woking 2D with gaussian