remove excess template