new version for elf structures