put request functioning