add toString to type