removing unwanted logs