Review comment added as comment  "// minsuk: "

// minsuk: using exit() and return at the same function is not a good practice, just use return