it solves, but it's slow and array's still don't work