aadded input to gradients