added comment for main function