event handling, commenting and debugging