resolved comparision bug