removing un necessary lines