finally fixed the slatergradient (i think)