fixes #1 fixed using toString() and removed a nested array