remove template leftovers