added msg before fi