replace instance variable