load array through constructor