fixed the wrong judgement for fin