made _get_materials properly define atom fraction and collapse elements