remove spurious fi and puts