bug fix -- new object and toArray()