working on the purchase activity