print the type as well