fixing pointers issues, still hashing issues