em_max added