changed some of the purchase hash structure

This commit didn't make it into the last pull request.