modify buying logic
modify buying logic