changing value method