corrected radial gradients and simplified variables