vector-ized the state slope stuff.