helper functions
added events