add fi to endif