completed excessive newline removal