added addAll and getArray