added type for the parameter in the event parsing functions