fixed UnexpectedTypeException not found error, updated return type to Event