removed logic from template