simplified the toString method for parallel dos