clean up dyn type code