correctly initialize with empty array