checking if mem addresses are the same in store and load