removing unwanted templates