make var function