fix to equal comparision