functions generator Var and Sen