finish premain explanation