moved a bunch of stuff into variables