added to_str function