finishing up pagination