removing unused templates