add type when missing