implement DG's solution for max CR too