made event trigger only once