fixed comparison hmf and f..again