parsing different types of events