update to buying logic