made to_string method work