remove unnecessary black lines.