update value method added