a bunch of messing about with the stylesheet