added flipend event