initial type parsing