added purchase completion
merged in purchase completion