functions for computations with D-modules