new function in EV_analysis.c