setting $page as ryan suggested