removes unneeded template