updates types to new format