gradient() code cleanup
curl() code cleanup