change toString to to_string for std:: compat