commiting before one paginate