fix comparision