fine logic fixed