commented out preparePage()because it broke everything