increased readability of main function