updated files. allocate in element init now