should be using deepequal