fixed use of -o option (proper indentation of if/else)