adding better LD quantization
imports and plotting