MISC: type checking in logistic