reset object changes after creating objects