added rMode to inspect function