removes pagination variables