adding by_page param