in main function data is defined before assignment