remove rtd lines