add gradients to dependencies