altered pagination,  fix for Issue #135

fix for Issue #135