mapping with/without type