remove irrelevant template stuff