this should be named `get_mode`