refactor: rephrase for loop so that it becomes more readable and remove redundancies from the retrieval call