use array.toList instead of fromArray