On canonical transformations and quantization rules