working on the deteached object problem