fixed stupid array bug