minor changes to pagination