buy object working