added type elements with according to https://github.com/ModalityTeam/Modality-toolkit/issues/67#issuecomment-39853213