pretty print: rm duplicated line