added ] to end of output toString