make sure all variables of the object are cleared on int