remove logic from template