removed array access that was breaking things