fixed deep comparision