changed __str__ to be iterative