adds state to purchase