more helper functions for interpreting mode data