add comment for main func