constifying a bunch of stuff