purchase item 1/2 complete need to debug