normalize types