BUG:removed@pages variable from