fix errors of producing redundant lines and missing necessary linesin 89 translaor.