remove needless lines