update function to get request