add the proximity function to read pages