native method for array