add type to output