update stpage.class and little performance