lesshat and gradient updated