Update set & get function