fetch elements, structure format, refactoring