fetch elements, structure format, refactoring

fetch elements, structure format, refactoring