made event listeners non-static