output the type as well