gnerateDesign: add logicals.as.factor