added put method for update new function