introduce common world access computation function to remove ducplication