BUG:removed@pages variable