trying to remove whitespace at end of file