added em_calc function