re-arranged main

for readability