fixed faulty commit, creating the arrays only once did not work