Better gradients convertor