added toArray