fetch: make the code more understandable