fixed toCstring methods