skeleton of fetch method