removed if in template