remove uneeded lines