fixed comparision issue