clean for repr.type