get rid of needless lines