trying to fix the slatergradient