magic number - max mode? - make this a const