helper function for getting at linked pages