tweaks toArray()