add value method