use page number instead of first record position
compile to dist