successful ev(pat) function