Updating the get function with the id