fix usage of new_type.