fix some indentation issues in main