ating a gradient solut