removed gdx array due to strange memory side effects