added most cases for the output file