array doesnt work, tried to fix it