update tostring method in chord