gradient working.  Cut down code.