handle no pages