return ret == hash