switching to better dict comparison