err_low_exp use global vars, func is broken