update to type