removed comments
added toArray()