fixed the stupid array problem