remove unused and pointless lines