removing unnecessary templates