removing unwanted functionalities in templates