direct assignment of values from main