prototyping events code.